<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<th:block th:replace="tpl :: common_head()"></th:block>
		<title>报名信息审核</title>
	</head>
	<body th:with="entrance='/system/ai/competitorIndex'">
		<th:block th:replace="tpl :: common_body(~{::.main-right})">
		<div class="main-right">
			<h1 class="main-right-h1">报名信息审核</h1>
			<ul class="main-right-tab">
				<li class="selected">报名列表</li>
			</ul>
			<form method="GET">
				<div class="panel">
					<table class="table" style="width:1000px">
					    <thead>
					      <tr>
					      	<th>操作</th>
					        <th>驳回理由</th>
					        <th>审核状态</th>
					        <th>比赛资格状态</th>
					        <th>赛事名称</th>
					        <th>报名队伍</th>
					        <th>队徽</th>
					      </tr> 
					    </thead>
					    <tbody>
							<tr th:each="obj : ${page.content}" th:object="${obj}">
								<td><a th:href="'javascript:reject('+*{id}+');'">驳回</a>&nbsp;&nbsp;
								<a th:href="'competitorMembers?id='+*{id}">查看队员</a></td>
								<td th:text="*{rejectReason}"></td>
								<td th:text="*{@dictService.getByTypeAndValue('simpleExamState',examState)}"></td>
								<td th:text="*{@dictService.getByTypeAndValue('qualifiedState',qualifiedState)}"></td>
								<td th:text="*{competitionName}"></td>
								<td th:text="*{teamName}"></td>
								<td><img th:src="*{@imageService.getImageBasePath()+logo}" style="width:50px"></td>
							</tr>
						</tbody>
					</table>
				</div>
				<div th:replace="tpl :: pagination(${page})"></div>
			</form>
		</div>
		</th:block>
		<script type="text/javascript">
		
			function reject(id) {
				layer.confirm('确定驳回吗？', {
					title : '提示'
				}, function(index) {
					window.location.href = "rejectCompetitor?id="+id;
					layer.close(index);
				});
			}
		</script>
	</body>
</html>